package com.learn.security.config;

import com.learn.security.core.validate.code.image.ImageCode;
import com.learn.security.core.validate.code.ValidateCodeGenerator;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * 代码自定义的验证码生成器
 */
//@Component("imageCodeGenerator")
public class DemoImageCodeGenerator implements ValidateCodeGenerator {
    @Override
    public ImageCode generateCode(ServletWebRequest request) {
        System.out.println("更高级的验证码生成器");
        return null;
    }
}
